switchroot: Move late /run/ostree-booted creation to ostree-system-generator
authorAlex Kiernan <alex.kiernan@hivehome.com>
Sat, 7 Jul 2018 21:35:35 +0000 (21:35 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 9 Jul 2018 00:11:31 +0000 (00:11 +0000)
commit11eb0bd227ffa1a3300e4dbde3da288a7d9d41ae
tree9f43280324a9db3db956e8c9173665022b8a5ff6
parentd6327f9dd9c4c787a5df46b339c1b0e045ec8134
switchroot: Move late /run/ostree-booted creation to ostree-system-generator

When ostree-prepare-root is pid 1, ostree-prepare-boot defers creation of
/run/ostree-booted, which happens in ostree-remount, but that's too late
if we need ostree-system-generator to bind /var. Add the creation of the
/run/ostree-booted marker to ostree-system-generator based on the
existence of the ostree= kernel command line argument (which matches the
condition that ostree-remount uses).

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Closes: #1675
Approved by: cgwalters
src/switchroot/ostree-prepare-root.c
src/switchroot/ostree-remount.c
src/switchroot/ostree-system-generator.c